TARGET = libxngl.so

XNGL_ROOT = ..
XNL_ROOT = ../../XNL

INCLUDES += \

SOURCES = \

# define parameter
CCFLAGS += -Wno-sequence-point
CXXFLAGS += -Wno-sequence-point -std=c++0x

OBJ_DIR = obj

include $(XNL_ROOT)/proj.linux/xnl.mk

SHAREDLIBS += -L$(LIB_DIR) -lxnl

TARGET_DIR ?= $(XNL_ROOT)/lib/linux
TARGET := $(TARGET_DIR)/$(TARGET)

all: $(TARGET)

$(TARGET): $(OBJECTS) $(CORE_MAKEFILE_LIST)
	@mkdir -p $(@D)
	$(LOG_LINK)$(CXX) $(CXXFLAGS) $(OBJECTS) -shared -o $@ $(SHAREDLIBS) $(STATICLIBS) $(LIBS)

$(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST)
	@mkdir -p $(@D)
	$(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@

$(OBJ_DIR)/%.o: %.c $(CORE_MAKEFILE_LIST)
	@mkdir -p $(@D)
	$(LOG_CC)$(CC) $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@

.PHONY: all
